package ar.edu.unq.wannaplay.pages.calendar;

import org.apache.wicket.spring.injection.annot.SpringBean;

import ar.edu.unq.wannaplay.pages.WPPage;
import ar.edu.unq.wannaplay.panels.calendar.CalendarViewPanel;
import ar.edu.unq.wannaplay.services.EmployeeService;

public class CalendarViewPage extends WPPage {

    @SpringBean(name = "service.employeeService")
    private EmployeeService service;

    public CalendarViewPage() {
        super("Calendar View Page");
        this.initialize();
        this.addLanguageSelect();
    }

    @Override
    protected void addMainContent() {
        this.add(new CalendarViewPanel("mainContent", this.getService()));
    }

    // setters&getters
    public EmployeeService getService() {
        return service;
    }

    public void setService(final EmployeeService service) {
        this.service = service;
    }

}
